home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12737 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 4e 65 74 56 69 |Path: ne|ws.NetVi|
|00000010| 73 69 6f 6e 2e 6e 65 74 | 2e 69 6c 21 6e 65 77 73 |sion.net|.il!news|
|00000020| 0a 46 72 6f 6d 3a 20 45 | 69 74 61 6e 20 48 6f 72 |.From: E|itan Hor|
|00000030| 77 69 74 7a 20 3c 74 6e | 74 40 6e 65 74 76 69 73 |witz <tn|t@netvis|
|00000040| 69 6f 6e 2e 6e 65 74 2e | 69 6c 3e 0a 4e 65 77 73 |ion.net.|il>.News|
|00000050| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000060| 67 2e 63 2b 2b 0a 53 75 | 62 6a 65 63 74 3a 20 52 |g.c++.Su|bject: R|
|00000070| 65 3a 20 48 65 6c 70 20 | 6d 65 20 77 69 74 68 20 |e: Help |me with |
|00000080| 44 4c 4c 0a 44 61 74 65 | 3a 20 32 31 20 4d 61 72 |DLL.Date|: 21 Mar|
|00000090| 20 31 39 39 36 20 30 39 | 3a 31 30 3a 33 35 20 47 | 1996 09|:10:35 G|
|000000a0| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000000b0| 20 4e 65 74 56 69 73 69 | 6f 6e 20 4c 54 44 2e 0a | NetVisi|on LTD..|
|000000c0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 34 69 72 |Message-|ID: <4ir|
|000000d0| 36 65 62 24 66 6f 74 40 | 6e 65 77 73 2e 4e 65 74 |6eb$fot@|news.Net|
|000000e0| 56 69 73 69 6f 6e 2e 6e | 65 74 2e 69 6c 3e 0a 52 |Vision.n|et.il>.R|
|000000f0| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 69 6e 30 |eference|s: <4in0|
|00000100| 34 72 24 36 33 61 40 66 | 61 6c 63 6f 6e 2e 63 63 |4r$63a@f|alcon.cc|
|00000110| 73 2e 75 77 6f 2e 63 61 | 3e 0a 4e 4e 54 50 2d 50 |s.uwo.ca|>.NNTP-P|
|00000120| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 74 73 30 |osting-H|ost: ts0|
|00000130| 30 30 70 35 2e 70 6f 70 | 32 61 2e 6e 65 74 76 69 |00p5.pop|2a.netvi|
|00000140| 73 69 6f 6e 2e 6e 65 74 | 2e 69 6c 0a 4d 69 6d 65 |sion.net|.il.Mime|
|00000150| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|00000160| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|00000170| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|00000180| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|00000190| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|000001a0| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4d 61 69 6c 65 |ng: 7bit|.X-Maile|
|000001b0| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 31 2e 31 50 45 |r: Mozil|la 1.1PE|
|000001c0| 20 28 57 69 6e 64 6f 77 | 73 3b 20 49 3b 20 31 36 | (Window|s; I; 16|
|000001d0| 62 69 74 29 0a 54 6f 3a | 20 78 75 40 61 75 64 69 |bit).To:| xu@audi|
|000001e0| 6f 2e 68 68 63 72 75 2e | 75 77 6f 2e 63 61 0a 0a |o.hhcru.|uwo.ca..|
|000001f0| 3e 49 20 6d 61 64 65 20 | 61 20 44 4c 4c 20 77 69 |>I made |a DLL wi|
|00000200| 74 68 20 43 2b 2b 2e 20 | 54 68 65 72 65 20 61 72 |th C++. |There ar|
|00000210| 65 20 6e 6f 20 70 72 6f | 62 6c 65 6d 73 20 77 68 |e no pro|blems wh|
|00000220| 65 6e 20 49 20 62 75 69 | 6c 74 20 74 68 65 20 44 |en I bui|lt the D|
|00000230| 4c 4c 20 61 6e 64 20 0a | 3e 63 61 6c 6c 20 44 4c |LL and .|>call DL|
|00000240| 4c 20 70 72 6f 67 72 61 | 6d 2e 20 42 75 74 20 61 |L progra|m. But a|
|00000250| 73 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 63 61 |s the pr|ogram ca|
|00000260| 6c 6c 20 66 75 6e 63 74 | 69 6f 6e 73 20 69 6e 20 |ll funct|ions in |
|00000270| 44 4c 4c 20 61 74 20 74 | 68 65 20 0a 3e 72 75 6e |DLL at t|he .>run|
|00000280| 20 74 69 6d 65 2c 20 49 | 20 67 6f 74 20 61 6e 20 | time, I| got an |
|00000290| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 20 22 41 |error me|ssage "A|
|000002a0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 45 72 72 6f 72 |pplicati|on Error|
|000002b0| 2e 20 43 61 6c 6c 20 74 | 6f 20 0a 3e 55 6e 64 65 |. Call t|o .>Unde|
|000002c0| 66 69 6e 65 64 20 44 79 | 6e 61 6c 69 6e 6b 22 2e |fined Dy|nalink".|
|000002d0| 20 49 20 63 68 65 63 6b | 20 61 6c 6c 20 4f 6e 6c | I check| all Onl|
|000002e0| 69 6e 65 20 68 65 6c 70 | 73 2e 20 54 68 65 72 65 |ine help|s. There|
|000002f0| 20 61 72 65 20 6e 6f 20 | 64 65 73 63 72 69 70 74 | are no |descript|
|00000300| 69 6f 6e 0a 3e 61 62 6f | 75 74 20 74 68 69 73 20 |ion.>abo|ut this |
|00000310| 65 72 72 6f 72 2e 20 43 | 6f 75 6c 64 20 73 6f 6d |error. C|ould som|
|00000320| 65 62 6f 64 79 20 74 65 | 6c 6c 20 6d 65 20 61 62 |ebody te|ll me ab|
|00000330| 6f 75 74 20 74 68 69 73 | 20 65 72 72 6f 72 3f 0a |out this| error?.|
|00000340| 0a 47 65 6f 72 67 65 20 | 2d 0a 20 20 49 27 76 65 |.George |-. I've|
|00000350| 20 73 75 66 66 65 72 65 | 64 20 74 68 69 73 20 70 | suffere|d this p|
|00000360| 72 6f 62 6c 65 6d 20 6a | 75 73 74 20 72 65 63 65 |roblem j|ust rece|
|00000370| 6e 74 6c 79 2e 20 20 54 | 68 65 20 65 72 72 6f 72 |ntly. T|he error|
|00000380| 20 6d 65 61 6e 73 20 79 | 6f 75 20 63 61 6c 6c 65 | means y|ou calle|
|00000390| 64 20 61 20 0a 66 75 6e | 63 74 69 6f 6e 20 74 68 |d a .fun|ction th|
|000003a0| 61 74 20 69 74 20 63 6f | 75 6c 64 6e 27 74 20 66 |at it co|uldn't f|
|000003b0| 69 6e 64 20 69 6e 20 74 | 68 65 20 44 4c 4c 2e 20 |ind in t|he DLL. |
|000003c0| 54 68 65 20 70 72 6f 62 | 6c 65 6d 20 49 20 68 61 |The prob|lem I ha|
|000003d0| 64 20 77 61 73 20 72 65 | 73 6f 6c 76 65 64 20 0a |d was re|solved .|
|000003e0| 62 79 20 64 65 63 6c 61 | 72 69 6e 67 20 74 68 65 |by decla|ring the|
|000003f0| 20 65 78 70 6f 72 74 65 | 64 20 44 4c 4c 20 66 75 | exporte|d DLL fu|
|00000400| 6e 63 74 69 6f 6e 73 20 | 61 73 3a 20 0a 20 20 20 |nctions |as: . |
|00000410| 65 78 74 65 72 6e 20 22 | 43 22 20 66 75 6e 63 6e |extern "|C" funcn|
|00000420| 61 6d 65 28 29 3b 20 20 | 20 20 20 20 20 0a 20 20 |ame(); | . |
|00000430| 20 20 20 20 20 20 20 20 | 2d 6f 72 2d 0a 20 20 20 | |-or-. |
|00000440| 65 78 74 65 72 6e 20 22 | 43 22 20 7b 0a 20 20 20 |extern "|C" {. |
|00000450| 20 20 20 66 75 6e 63 31 | 28 29 3b 0a 20 20 20 20 | func1|();. |
|00000460| 20 20 66 75 6e 63 32 28 | 29 3b 0a 20 20 20 7d 0a | func2(|);. }.|
|00000470| 0a 20 20 54 68 69 73 20 | 70 72 65 76 65 6e 74 73 |. This |prevents|
|00000480| 20 74 68 65 20 43 2b 2b | 20 63 6f 6d 70 69 6c 65 | the C++| compile|
|00000490| 72 20 66 72 6f 6d 20 64 | 6f 69 6e 67 20 77 68 61 |r from d|oing wha|
|000004a0| 74 20 69 73 20 76 61 72 | 69 6f 75 73 6c 79 20 63 |t is var|iously c|
|000004b0| 61 6c 6c 65 64 20 0a 22 | 6e 61 6d 65 2d 6d 61 6e |alled ."|name-man|
|000004c0| 67 6c 69 6e 67 22 20 6f | 72 20 22 6e 61 6d 65 2d |gling" o|r "name-|
|000004d0| 64 65 63 6f 72 61 74 69 | 6e 67 22 20 28 74 68 65 |decorati|ng" (the|
|000004e0| 20 6e 61 6d 65 20 64 65 | 70 65 6e 64 73 20 6f 6e | name de|pends on|
|000004f0| 20 79 6f 75 72 20 6c 6f | 76 65 20 66 6f 72 20 0a | your lo|ve for .|
|00000500| 43 2b 2b 2c 20 49 20 71 | 75 65 73 73 2e 29 0a 20 |C++, I q|uess.). |
|00000510| 20 4e 61 6d 65 2d 6d 61 | 6e 67 6c 69 6e 67 20 28 | Name-ma|ngling (|
|00000520| 49 20 73 74 69 6c 6c 20 | 6c 69 6b 65 20 43 2b 2b |I still |like C++|
|00000530| 29 20 61 64 64 73 20 63 | 68 61 72 61 63 74 65 72 |) adds c|haracter|
|00000540| 73 20 74 6f 20 74 68 65 | 20 66 75 6e 63 74 69 6f |s to the| functio|
|00000550| 6e 20 64 75 72 69 6e 67 | 20 0a 63 6f 6d 70 69 6c |n during| .compil|
|00000560| 61 74 69 6f 6e 20 73 6f | 20 74 68 61 74 20 74 68 |ation so| that th|
|00000570| 65 20 63 6f 6d 70 69 6c | 65 72 20 6b 6e 6f 77 73 |e compil|er knows|
|00000580| 20 77 68 61 74 20 74 68 | 65 20 72 65 74 75 72 6e | what th|e return|
|00000590| 20 74 79 70 65 20 61 6e | 64 20 74 68 65 20 0a 70 | type an|d the .p|
|000005a0| 61 72 61 6d 65 74 65 72 | 20 74 79 70 65 73 20 6f |arameter| types o|
|000005b0| 66 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 61 |f the fu|nction a|
|000005c0| 72 65 2e 20 20 54 68 69 | 73 20 61 6c 6c 6f 77 73 |re. Thi|s allows|
|000005d0| 20 66 6f 72 20 74 79 70 | 65 20 63 68 65 63 6b 69 | for typ|e checki|
|000005e0| 6e 67 20 61 6e 64 20 0a | 74 68 65 20 64 65 66 69 |ng and .|the defi|
|000005f0| 6e 69 74 69 6f 6e 20 6f | 66 20 6f 76 65 72 6c 6f |nition o|f overlo|
|00000600| 61 64 65 64 20 66 75 6e | 63 74 69 6f 6e 73 2e 20 |aded fun|ctions. |
|00000610| 20 4d 6f 72 65 20 69 6e | 66 6f 20 61 62 6f 75 74 | More in|fo about|
|00000620| 20 74 68 69 73 20 69 6e | 20 79 6f 75 72 20 0a 63 | this in| your .c|
|00000630| 6f 6d 70 69 6c 65 72 20 | 64 6f 63 75 6d 65 6e 74 |ompiler |document|
|00000640| 61 74 69 6f 6e 2e 0a 0a | 20 20 48 6f 70 65 20 74 |ation...| Hope t|
|00000650| 68 69 73 20 77 61 73 20 | 6f 66 20 68 65 6c 70 2e |his was |of help.|
|00000660| 0a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..------|--------|
|00000670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000690| 2d 2d 2d 0a 45 69 74 61 | 6e 20 28 54 6f 6e 79 29 |---.Eita|n (Tony)|
|000006a0| 20 48 6f 72 77 69 74 7a | 0a 44 65 73 65 72 74 20 | Horwitz|.Desert |
|000006b0| 53 75 6e 20 4f 70 65 72 | 61 74 69 6f 6e 73 0a 74 |Sun Oper|ations.t|
|000006c0| 6e 74 40 6e 65 74 76 69 | 73 69 6f 6e 2e 6e 65 74 |nt@netvi|sion.net|
|000006d0| 2e 69 6c 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.il.----|--------|
|000006e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000700| 2d 2d 2d 2d 2d 0a 0a | |-----.. | |
+--------+-------------------------+-------------------------+--------+--------+